import React from 'react';
import { Popover } from 'antd';
import { Icon } from '@/pages/Recruitment/components';

const RecommendTip = ({ result }) => {
    if (!result?.recommendDutyName) return null;
    const content = (
        <div style={{ whiteSpace: 'nowrap' }}>
            <div>推荐岗位：{result?.recommendDutyName}</div>
            <div>行政机构：{result?.recommendCompanyName}</div>
            <div>需求部门：{result?.recommendOrganizationName}</div>
        </div>
    );
    return (
        <Popover title="推荐到其他岗位" content={content}>
            <div style={{ display: 'flex', fontWeight: 'normal' }}>
                <Icon type="iconlistfunction_out" style={{ marginRight: 6 }} />
                {result?.recommendDutyName}
            </div>
        </Popover>
    );
};
export default RecommendTip;
